import qs from 'qs';
import http from '@/utils/axios/axios'


// 新增基本信息
export function addDepartment(data) {
  return http.post(`/temr/hospitalDepartment/addHospitalDepartment`, data)
}

// 编辑基本信息
export function editDepartment(data) {
  return http.post(`/temr/hospitalDepartment/editHospitalDepartment`, data)
}

// 分页查询基本信息
export function queryDepartmentPage(data) {
  return http.post(`/temr/hospitalDepartment/queryHospitalDepartmentPage`, data)
}

// 根据患者id查询单个对象信息
export function queryPatientOne(data) {
  return http.get(`/temr/patient/queryPatientOne/${data.id}`, {params: data})
}

//删除科室信息
export function delDepartment(data) {
  return http.get(`/temr/hospitalDepartment/delete/${data}`);
}